<!--搜索与重置-->
<template>
  <span>
    <a-button
      class="filter-item"
      type="primary"
      @click="crud.toQuery"
    >
      <a-icon type="search" />搜索
    </a-button>
    <a-button
      v-if="crud.optShow.reset"
      class="filter-item"
      type="primary"
      @click="crud.resetQuery()"
    >
      <a-icon type="reload" />重置
    </a-button>
  </span>
</template>
<script>
import { crud } from '@crud/crud';
export default {
  mixins: [crud()],
  props: {
    itemClass: {
      type: String,
      required: false,
      default: '',
    },
  },
};
</script>
